﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SmartProject
{
    /// <summary>
    /// BusinessRuleParameter is a class specifically designed to hold
    /// relavent information pertient to the efficient running of a
    /// BusinessRule.
    /// </summary>
    /// <remarks>
    /// For example, if a piece of information is avaliable, but is not
    /// used in the execution of the stord proc, then we can use this
    /// class to hold that piece of information for just the BusinessRule
    /// to use.
    /// </remarks>
    public class BusinessRuleParameter
    {
        public BusinessRuleParameter(string name, object value)
        {
            _name = name;
            _value = value;
        }

        private readonly string _name;
        /// <summary>
        /// Gets the name of the business rule parameter.
        /// </summary>
        public string Name
        {
            get { return _name; }
        }

        private readonly object _value;
        /// <summary>
        /// Gets the value of the business rule parameter.
        /// </summary>
        public object Value
        {
            get { return _value; }
        } 
    }
}
